Fix Memory Management Error Windows 10, 11